package net.wanho.zaixian.cms.service.impl;

import net.wanho.zaixian.cms.dao.CmsConfigDao;
import net.wanho.zaixian.cms.service.CmsConfigService;
import net.wanho.zaixian.pojo.cms.CmsConfig;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Optional;


@Service
public class CmsConfigServiceImpl implements CmsConfigService {
    
    @Resource
    private CmsConfigDao cmsConfigDao;
    @Override
    public CmsConfig getCmsConfigById(String id) {
        Optional<CmsConfig> optional = cmsConfigDao.findById(id);
        CmsConfig cmsConfig = optional.get();

        return cmsConfig;
    }
}
